import request from '@/common/utils/request'

export function getTestCarList(data) {
  return request({
    url: 'test-car/list',
    method: 'post',
    data
  })
}

export function getTaskItemsCarAndLogs(data) {
  return request({
    url: 'test-car/get-task-items-car-and-logs',
    method: 'post',
    data
  })
}

export function done(data) {
  return request({
    url: 'test-car/done',
    method: 'post',
    data
  })
}

export function addTestCar(data) {
  return request({
    url: 'test-car/add',
    method: 'post',
    data
  })
}

export function updateTestCar(data) {
  return request({
    url: 'test-car/update',
    method: 'post',
    data
  })
}

export function deleteTestCar(data) {
  return request({
    url: 'test-car/delete',
    method: 'post',
    data
  })
}

export function getTestCarListByEntId(data) {
  return request({
    url: 'test-car/get-list-by-ent-id',
    method: 'post',
    data
  })
}

export function getTestCarListByEntVin(data) {
  return request({
    url: 'test-car/get-list-by-ent-vin',
    method: 'post',
    data
  })
}

export function getTestCarLogs(data) {
  return request({
    url: 'test-car/get-car-logs',
    method: 'post',
    data
  })
}
